package com.main.java;

// Generated 04-10-2014 04:49:49 PM by Hibernate Tools 3.4.0.CR1


import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;



import com.generico.dto.ctg.CtgCatalogo;
import com.generico.dto.ctg.CtgProducto;


@Entity
@Table(name = "detalle_requisicion")
public class DetalleRequisicion implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	@Id
	@Column(name = "req_detalle_id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "IdGenerator")
    @SequenceGenerator(allocationSize = 1, name = "IdGenerator", sequenceName = "req_detalle_id_seq")
	private Long requicisionDetalleId;

	
	@Column(name = "req_det_detalle")
	private String requesicionDetalle;
	
	@Column(name = "req_det_cantidad")
	private String requisicionDetalleCantidad;
	
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "requisicion_id")
	private  Requisicion requisicion ;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ctg_materia_prima")
	private CtgCatalogo ctgMateriaPrima;

	public Long getRequicisionDetalleId() {
		return requicisionDetalleId;
	}

	public void setRequicisionDetalleId(Long requicisionDetalleId) {
		this.requicisionDetalleId = requicisionDetalleId;
	}

	public String getRequesicionDetalle() {
		return requesicionDetalle;
	}

	public void setRequesicionDetalle(String requesicionDetalle) {
		this.requesicionDetalle = requesicionDetalle;
	}

	public String getRequisicionDetalleCantidad() {
		return requisicionDetalleCantidad;
	}

	public void setRequisicionDetalleCantidad(String requisicionDetalleCantidad) {
		this.requisicionDetalleCantidad = requisicionDetalleCantidad;
	}

	public Requisicion getRequisicion() {
		return requisicion;
	}

	public void setRequisicion(Requisicion requisicion) {
		this.requisicion = requisicion;
	}

	public CtgCatalogo getCtgMateriaPrima() {
		return ctgMateriaPrima;
	}

	public void setCtgMateriaPrima(CtgCatalogo ctgMateriaPrima) {
		this.ctgMateriaPrima = ctgMateriaPrima;
	}

}